﻿@model IEnumerable<FlowerShop.Core.Models.Tgood>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.G_name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_chenbenjia)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_xiaoshoujia)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_VIPjia)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_kuchun)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.L_id)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Y_id)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Y_name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_miaosu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_huayu)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Image)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_duixiang)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.G_changjing)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.G_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_chenbenjia)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_xiaoshoujia)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_VIPjia)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_kuchun)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.L_id)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Y_id)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Y_name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_miaosu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_huayu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Image)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_duixiang)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.G_changjing)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.G_id }) |
            @Html.ActionLink("Details", "Details", new { id=item.G_id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.G_id })
        </td>
    </tr>
}

</table>
